package com.hujifang.elasticsearch.model;

import java.util.List;

/**
 * 索引文档
 * Created by Hurricane.Hu on 2015/8/11.
 */
public class EsDocument extends EsIndex{
    private static final long serialVersionUID = -7322907970732783201L;
    /**
     * 索引类型
     */
    private String indexType;
    /**
     * 索引id
     */
    private String id;
    /**
     * 索引文档数据
     */
    private Object data;
    /**
     * 自动提示索引名称
     */
    private String suggestIndexName="suggest";
    /**
     * 自动提示索引类型
     */
    private String suggestIndexType="keyword";
    /**
     * 自动提示字段，一般是常搜索的的字段，不宜过长
     */
    private List<String> suggestFields;

    public String getIndexType() {
        return indexType;
    }

    public void setIndexType(String indexType) {
        this.indexType = indexType;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public String getSuggestIndexType() {
        return suggestIndexType;
    }

    public void setSuggestIndexType(String suggestIndexType) {
        this.suggestIndexType = suggestIndexType;
    }

    public List<String> getSuggestFields() {
        return suggestFields;
    }

    public void setSuggestFields(List<String> suggestFields) {
        this.suggestFields = suggestFields;
    }

    public String getSuggestIndexName() {
        return suggestIndexName;
    }

    public void setSuggestIndexName(String suggestIndexName) {
        this.suggestIndexName = suggestIndexName;
    }
}
